import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import echarts from 'echarts'

// 主题样式
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss'
import '@/styles/reset.css' // CSS重置的现代替代方法

import './permission' // 路由的拦截
import './components/pubilcComponents.js' // 注册公共组件 和 公共方法

// 自定义指令
import permission from './directive/permission'
Vue.use(permission)
import customJS from './utils/custom'
// import '@/utils/cache.js'

Vue.config.productionTip = false
Vue.use(ElementUI)
// vue 调试
Vue.config.devtools = true

Vue.prototype.$echarts = echarts

Vue.prototype.$custom = customJS

import watermark from './warterMark.js'
Vue.prototype.$watermark = watermark

new Vue({
  router,
  store,
  render: function(h) {
    return h(App)
  }
}).$mount('#app')
